// 封装token函数
const TOKEN_NAME = 'hmtt'

export const setStorageToken = (token) => {
  localStorage.setItem(TOKEN_NAME, JSON.stringify(token))
}
// 退出登录使用
export const removeStorageToken = () => {
  localStorage.removeItem(TOKEN_NAME)
}

export const getStorageToken = () => {
  return JSON.stringify(localStorage.getItem(TOKEN_NAME)) || {}
}
